
<div class="footer">
    <div class="pull-right">
        什邡智慧城市提供技术支持：<a target="_blank" href="http://www.cloudprida.com" target="_blank">联系我们</a>
    </div>
    <div>
        <strong>天晨定制</strong> &copy; 2016&nbsp;&nbsp;&nbsp;电话:028-888888
    </div>
</div>

</div>
</div>

<!--修改密码-->
<div class="modal inmodal" id="password" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h3 class="font-bold text-info"><i class="fa fa-edit"></i> 修改密码</h3>
            </div>
            <form class="form-horizontal form-horizontal-pw" method="post" action="{:U('Login/updatePwd')}">
            <div class="modal-body">

                    <div class="form-group">
                        <label class="col-sm-3 control-label">原密码：</label>
                        <div class="col-sm-8">
                            <input type="password" name="password" placeholder="原密码" class="form-control" required>
                            <span class="help-block m-b-none text-muted">请输入您注册时所填的密码</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">新密码：</label>
                        <div class="col-sm-8">
                            <input type="password" name="newpwd" placeholder="新密码" class="form-control" required>
                            <span class="help-block m-b-none text-muted">请输入您的新密码</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">确认新密码：</label>
                        <div class="col-sm-8">
                            <input type="password" name="renewpwd" placeholder="确认新密码" class="form-control" required>
                            <span class="help-block m-b-none text-muted">请确认您的新密码</span>
                        </div>
                    </div>
                    <div class="clearfix"></div>

            </div>
            <div class="modal-footer">
                <button type="submit" target-form="form-horizontal-pw" class="ajax-post btn btn-info col-lg-2 col-lg-push-5" data-dismiss="modal">提交</button>
            </div>
            </form>
        </div>
    </div>
</div>
<!--修改密码 endif-->
<!--修改昵称-->
<div class="modal inmodal" id="nicheng" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h3 class="font-bold text-info"><i class="fa fa-edit"></i> 修改昵称</h3>
            </div>
            <form class="form-horizontal-s" action="{:U('Login/updateNickName')}" method="post">
            <div class="modal-body">

                    <div class="form-group">
                        <label class="col-sm-3 control-label">新昵称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="nickname" value="{$Think.session.tc.nickname}" placeholder="新昵称" class="form-control">
                            <span class="help-block m-b-none text-muted">请输入您的新昵称</span>
                        </div>
                    </div>
                    <div class="clearfix"></div>

            </div>
            <div class="modal-footer">
                <button type="submit" target-form="form-horizontal-s" class="ajax-post btn btn-info col-lg-2 col-lg-push-5" data-dismiss="modal">提交</button>
            </div>
            </form>
        </div>
    </div>
</div>
<!--修改昵称 endif-->



<!-- Mainly scripts -->
<script src="__PUBLIC__/Admin/js/jquery-2.1.1.min.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.4.0"></script>
<script src="__PUBLIC__/Admin/js/common.js"></script>
<script src="__PUBLIC__/Admin/js/plugins/layer/layer.js"></script>
<!-- Peity demo -->
<!--<script src="__PUBLIC__/Admin/js/demo/peity-demo.js"></script>-->

</body>

</html>
<script>


$(function(){

    $('#res').click(function(){
        $("#msg2").css('display','none');
    })

    //全选的实现
    $(".check-all").click(function(){
        $(".ids").prop("checked", this.checked);
    });

    $("#tongzi").click(function(){
        $("#msg2").css('display','block');
    })
//获取通知信息
    function message(){

        $.post("{:U('Login/getMessage')}",{id:200},function(re){

            if(re==0){
                $("#nums").css('display','none');
            }else{
                $("#nums").css('display','block');
                $("#nums").html(re.number);
            }

            if(re==0 ){
                $("#msg1").html('没有通知信息');
                $("#msg2").css('display','none');
            }else{
                $("#msg2").css('display','block');
                var content=re.content+"<a href='"+re.url+"?s_id="+re.id+"'>点击查看详情</a>"
                $("#msg1").html(content);
            }
        })
    }

    message();

    setInterval(function(){
          message();

    },1000*60);


})





</script>
